package com.example.lanqiaodemo.controller;


import com.example.lanqiaodemo.common.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("orderInfo")
public class orders {
    /**
     * 查询
     */
    @GetMapping("/orders/{id}")
    public Result orders(@PathVariable String id){
        System.out.println("编号是" + id);
        // TODO 查询数据库
        return  Result.ok("11","22");
    }

    /**
     * 添加
     */


}
